<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>search composer</title>
    <style>

        .layui-inline{
            padding-top: 2px;
        }

    </style>
</head>
<body>
<div class="layui-form">

    <foreach name="__search" item="val" key="key">
        <if condition="$key neq 'title' and $key neq 'form' and $key neq 'header'">

            <if condition="$val.type eq 'button'">
                <foreach name="$val.value" item="v" key="k">
                    <div class="yui_md" style="
                        display: <?php if (!in_array(str_replace('/','',$__url).'--'.$v,think\Session::get('button-resource')) && think\Session::get('username')!='admin') { ?>  none <?php } ?>">
                        <button class="btn btn-danger" id="{$v}">
                            <i class="{$k} align-top bigger-125"></i>
                            {$lang[$v]}
                        </button>
                    </div>
                </foreach>
            </if>

        </if>
    </foreach>


</div>
</body>
</html>